package com.lxd.sunso.product.dao;

import com.lxd.sunso.product.entity.MachineEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxd.sunso.product.vo.MessageVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lxd
 * @email sunlightcs@gmail.com
 * @date 2020-12-30 18:06:30
 */
@Mapper
public interface MachineDao extends BaseMapper<MachineEntity> {

    List<Long> findTemplateByCustomerId(Long id);

    Long queryOnByMachineKind(Long id);

    Long queryNumByMachineKind(Long id);

    List<Long> searchTemplateByKind(Long id);

    Long queryOnByCustomer(Long id);

    Long queryNumByCustomer(Long id);

    List<String> getEmail(String machineName);

    List<String> getPhone(String machineName);

    List<MessageVo> getKindAndNum();

    MessageVo getKindAndNumOther();
}
